﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using QidorSpider.Components.Data;

namespace QidorSpider
{
    public partial class FormWebPost : Form
    {
        public FormWebPost()
        {
            InitializeComponent();
        }

        private void FormWebPost_Load(object sender, EventArgs e)
        {
            LoadTreeView()();





        }

        private void LoadTreeView()
        {
            List<cClassData> classList = cDataHelper.GetClassDataList("post");
            if(classList != null && classList.Count > 0)
            {
                foreach (cClassData classData in classList)
                {
                    TreeNode parentNode = new TreeNode();
                    parentNode.Text = classData.g_name;

                    List<cPostData> postDataList = cDataHelper.GetPostNameList(classData.g_id);
                    if(postDataList != null && postDataList.Count > 0)
                    {
                        foreach(cPostData postData in postDataList)
                        {
                            TreeNode childNode = new TreeNode(postData.name);
                            parentNode.Nodes.Add(childNode);
                        }
                    }
                }
            }
        }


        private void btnParaUp_Click(object sender, EventArgs e)
        {

        }

        private void btnParaDown_Click(object sender, EventArgs e)
        {

        }

        private void btnParaAdd_Click(object sender, EventArgs e)
        {

        }

        private void btnParaUpdate_Click(object sender, EventArgs e)
        {

        }

        private void btnParaDelete_Click(object sender, EventArgs e)
        {

        }

        private void btnConfirm_Click(object sender, EventArgs e)
        {

        }

        private void btnCancel_Click(object sender, EventArgs e)
        {

        }


        private void btnOk_Click(object sender, EventArgs e)
        {

        }

        private void btnGetCookies_Click(object sender, EventArgs e)
        {

        }
    }
}
